package com.woniuxy.pxxt.controller;


import com.woniuxy.pxxt.common.result.Result;
import com.woniuxy.pxxt.service.RoleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 每个账户对应的角色(PxxtRole)表控制层
 *
 * @author makejava
 * @since 2022-03-07 16:33:15
 */
@Api(value = "每个账户对应的角色")
@RestController
@RequestMapping("/role")
@CrossOrigin
public class RoleController {


    @Autowired
    private RoleService roleService;

    @ApiOperation(value = "查询所有角色")
    @GetMapping("/findAllRole")
    public Result getAllRole(){
        return roleService.findAllRole();
    }
}

